import request from '@/utils/request'

// 查询终端轨迹列表
export function listTrajectory(query) {
  return request({
    url: '/basicInformation/trajectory/list',
    method: 'get',
    params: query
  })
}

// 查询终端轨迹详细
export function rySynchronizationTerminalMileage(id) {
  return request({
    url: '/basicInformation/trajectory/rySynchronizationTerminalMileage/' + id,
    method: 'get'
  })
}

// 查询终端轨迹详细
export function getTrajectory(id) {
  return request({
    url: '/basicInformation/trajectory/' + id,
    method: 'get'
  })
}

// 新增终端轨迹
export function addTrajectory(data) {
  return request({
    url: '/basicInformation/trajectory',
    method: 'post',
    data: data
  })
}

// 修改终端轨迹
export function updateTrajectory(data) {
  return request({
    url: '/basicInformation/trajectory',
    method: 'put',
    data: data
  })
}

// 删除终端轨迹
export function delTrajectory(id) {
  return request({
    url: '/basicInformation/trajectory/' + id,
    method: 'delete'
  })
}

// 导出终端轨迹
export function exportTrajectory(query) {
  return request({
    url: '/basicInformation/trajectory/export',
    method: 'get',
    params: query
  })
}

// 导出终端轨迹
export function getListByDate(query) {
  return request({
    url: '/basicInformation/trajectory/getListByDate',
    method: 'get',
    params: query
  })
}
